
<!DOCTYPE html>
<html lang="en">

<head>
    {include file='./head_template'/}
</head>

<body>

    <div id="wrapper">
        {include file='./nav_template'/}

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">{$projectText}</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading clearfix">
                            <span>数据库表格</span>
                            <a class="btn btn-sm btn-success pull-right" href="{:url('index/add',['addId'=>$projectId])}">添加</a>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>标题</th>
                                        <th>正文</th>
                                        <th>类别</th>
                                        <th>时间</th>
                                        <th>审核人</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>

                                {volist name="article" id="vo"}
                                        <tr class="even gradeC">
                                            <td>{$vo.title}</td>
                                            <td>{$vo.content}</td>
                                            <td>{$vo.project_id},{$vo.menu_id},{$vo.tag_id}</td>
                                            <td class="center">{$vo.time}</td>
                                            <td class="center">{$vo.reviewer}</td>
                                            <td>
                                                <a class="btn btn-warning btn-sm">修改</a>
                                                <a class="btn btn-danger btn-sm" href="{:url('ActionArticle/del',['articleId'=>$vo.id])}">删除</a>
                                            </td>
                                        </tr>
                                {/volist}
                                </tbody>
                            </table>

                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    {include file='./foot_template'/}


</body>

</html>
